/** 
 * @file        e2prom.h
 * @brief       
 * @details     
 * @author   fulong
 * @date     Mar 29, 2014
 * @version  1.0
 * @par Copyright (c):
 *       GPLv2
 */

#ifndef E2PROM_H_
#define E2PROM_H_

#include "../hal_include/hal_types.h"

extern void e2prom_init(void);
extern void e2prom_write_single_byte(uint16 adress,uint8 data);
extern uint8 e2prom_read_random_byte(uint16 adress);
extern uint8 get_e2prom_ack(void);
extern uint8 e2prom_read_cur_byte(void);
extern uint8 e2prom_multiple_write(uint16 adress, uint8* data,uint8 length);
extern uint8 e2prom_multiple_read(uint16 adress, uint8* data,uint8 length);

#endif /* E2PROM_H_ */
